import random

salary_sum = 10000
employee_id = 0

for employee_id in range(1,21):
    if salary_sum <= 0:
        print("工资发完了，下个月再领取吧。")
        break
    employee_pfm = random.randint(1, 10)
    if employee_pfm < 5:
        print(f"员工{employee_id},绩效分{employee_pfm},低于5，不发工资，下一位。")
    else:
        salary_sum -= 1000
        print(f"向员工{employee_id}发放工资1000元，账户余额还剩{salary_sum}。")